<template>
    <el-col class="top box box-pack-between">
        <h3>{{title}}</h3>
        <span class="time">{{getCurrentDate()}}更新</span>
    </el-col>
</template>

<script>
    import moment from "moment";
    export default{
        props:{
            title:{
                default:"排行"
            }
        },
        data() {
          return{}
        },
        methods:{
            getCurrentDate(){
              return moment().format("YYYY/MM/DD HH:mm")
            }
        }
    }
</script>

<style scoped>
    .time{
        font-size: 13px;
        color: #939FF4;
    }
</style>
